package com.yidu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.dao.ListenReturnGoodsDetailMapper;
import com.yidu.domain.ListenReturnGoodsDetail;
import com.yidu.service.ListenReturnGoodsDetailService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jiangyu
 * @since 2018-11-27
 */
@Service
public class ListenReturnGoodsDetailServiceImpl  implements ListenReturnGoodsDetailService {

	@Resource
	ListenReturnGoodsDetailMapper dao;
	@Override
	public int addDetail(ListenReturnGoodsDetail detail) {
		
		return dao.insertSelective(detail);
	}
	@Override
	public List<ListenReturnGoodsDetail> selectReturnDetailAll(Map<String, Object> map) {
		return dao.selectReturnDetailAll(map);
	}
	@Override
	public int selectReturnDetailCount(Map<String, Object> map) {
		return dao.selectReturnDetailCount(map);
	}
	@Override
	public List<ListenReturnGoodsDetail> findByDetails(String id) {
		return dao.findByDetails(id);
	}

}
